<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: kern/debug/assert.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b3dad8e81b3f37b89b2bf0a8abb2d993.html">kern</a></li><li class="navelem"><a class="el" href="dir_60cf14b59ebeb9a69dd0c7e8f099369e.html">debug</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">assert.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="defs_8h_source.html">defs.h</a>&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
assert.h 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="assert_8h__incl.gif" border="0" usemap="#akern_2debug_2assert_8h" alt=""/></div>
<map name="akern_2debug_2assert_8h" id="akern_2debug_2assert_8h">
<area shape="rect" title=" " alt="" coords="5,5,156,32"/>
<area shape="rect" href="defs_8h.html" title=" " alt="" coords="49,80,112,107"/>
</map>
</div>
</div><div class="textblock"><div class="dynheader">
此图展示该文件直接或间接的被哪些文件引用了:</div>
<div class="dyncontent">
<div class="center"><img src="assert_8h__dep__incl.gif" border="0" usemap="#akern_2debug_2assert_8hdep" alt=""/></div>
<map name="akern_2debug_2assert_8hdep" id="akern_2debug_2assert_8hdep">
<area shape="rect" title=" " alt="" coords="507,5,658,32"/>
<area shape="rect" href="kdebug_8c.html" title=" " alt="" coords="5,80,163,107"/>
<area shape="rect" href="ide_8c.html" title=" " alt="" coords="187,80,314,107"/>
<area shape="rect" href="swapfs_8c.html" title=" " alt="" coords="546,304,673,331"/>
<area shape="rect" href="pmm_8h.html" title=" " alt="" coords="724,80,855,107"/>
<area shape="rect" href="vmm_8c.html" title=" " alt="" coords="1867,229,1997,256"/>
<area shape="rect" href="trap_8c.html" title=" " alt="" coords="1670,229,1791,256"/>
<area shape="rect" href="init_8c.html" title=" " alt="" coords="1535,229,1646,256"/>
<area shape="rect" href="default__pmm_8c.html" title=" " alt="" coords="594,229,777,256"/>
<area shape="rect" href="default__pmm_8h.html" title=" " alt="" coords="569,155,751,181"/>
<area shape="rect" href="pmm_8c.html" title=" " alt="" coords="441,229,570,256"/>
<area shape="rect" href="swap_8c.html" title=" " alt="" coords="1187,304,1317,331"/>
<area shape="rect" href="swap_8h.html" title=" " alt="" coords="1128,155,1259,181"/>
<area shape="rect" href="swapfs_8h.html" title=" " alt="" coords="852,229,980,256"/>
<area shape="rect" href="swap__clock_8c.html" title=" " alt="" coords="1376,304,1547,331"/>
<area shape="rect" href="swap__clock_8h.html" title=" " alt="" coords="1289,229,1460,256"/>
<area shape="rect" href="swap__fifo_8c.html" title=" " alt="" coords="972,304,1129,331"/>
<area shape="rect" href="swap__fifo_8h.html" title=" " alt="" coords="1055,229,1214,256"/>
</map>
</div>
</div>
<p><a href="assert_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a8224a361dddd2ad59b411982e5ea746f"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="assert_8h.html#a8224a361dddd2ad59b411982e5ea746f">warn</a>(...)&#160;&#160;&#160;    <a class="el" href="panic_8c.html#ae9712851edefd0581a31baaf59bfd760">__warn</a>(__FILE__, __LINE__, __VA_ARGS__)</td></tr>
<tr class="separator:a8224a361dddd2ad59b411982e5ea746f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1445e207e36c97ff84c54b47288cea19"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="assert_8h.html#a1445e207e36c97ff84c54b47288cea19">panic</a>(...)&#160;&#160;&#160;    <a class="el" href="panic_8c.html#a25218fc49e78880520297428623c7178">__panic</a>(__FILE__, __LINE__, __VA_ARGS__)</td></tr>
<tr class="separator:a1445e207e36c97ff84c54b47288cea19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af576bf8ffa22a44e53018c67095ffbf0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="assert_8h.html#af576bf8ffa22a44e53018c67095ffbf0">assert</a>(x)</td></tr>
<tr class="separator:af576bf8ffa22a44e53018c67095ffbf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26ebd2e4b6c3a73d52d3942fd8446790"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="assert_8h.html#a26ebd2e4b6c3a73d52d3942fd8446790">static_assert</a>(x)&#160;&#160;&#160;    switch (x) { case 0: case (x): ; }</td></tr>
<tr class="separator:a26ebd2e4b6c3a73d52d3942fd8446790"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ae9712851edefd0581a31baaf59bfd760"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="assert_8h.html#ae9712851edefd0581a31baaf59bfd760">__warn</a> (const char *file, int line, const char *fmt,...)</td></tr>
<tr class="separator:ae9712851edefd0581a31baaf59bfd760"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa31d39d7e957e5d6f5a7c1e193e1c992"><td class="memItemLeft" align="right" valign="top">void <a class="el" href="defs_8h.html#a5b6df4fe38493e14648842364a76075f">__noreturn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="assert_8h.html#aa31d39d7e957e5d6f5a7c1e193e1c992">__panic</a> (const char *file, int line, const char *fmt,...)</td></tr>
<tr class="separator:aa31d39d7e957e5d6f5a7c1e193e1c992"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="af576bf8ffa22a44e53018c67095ffbf0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af576bf8ffa22a44e53018c67095ffbf0">&#9670;&nbsp;</a></span>assert</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define assert</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">    <span class="keywordflow">do</span> {                                                \</div>
<div class="line">        if (!(x)) {                                     \</div>
<div class="line">            panic(<span class="stringliteral">&quot;assertion failed: %s&quot;</span>, #x);          \</div>
<div class="line">        }                                               \</div>
<div class="line">    } <span class="keywordflow">while</span> (0)</div>
</div><!-- fragment -->
</div>
</div>
<a id="a1445e207e36c97ff84c54b47288cea19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1445e207e36c97ff84c54b47288cea19">&#9670;&nbsp;</a></span>panic</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define panic</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;    <a class="el" href="panic_8c.html#a25218fc49e78880520297428623c7178">__panic</a>(__FILE__, __LINE__, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a26ebd2e4b6c3a73d52d3942fd8446790"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26ebd2e4b6c3a73d52d3942fd8446790">&#9670;&nbsp;</a></span>static_assert</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define static_assert</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;    switch (x) { case 0: case (x): ; }</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a8224a361dddd2ad59b411982e5ea746f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8224a361dddd2ad59b411982e5ea746f">&#9670;&nbsp;</a></span>warn</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define warn</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;    <a class="el" href="panic_8c.html#ae9712851edefd0581a31baaf59bfd760">__warn</a>(__FILE__, __LINE__, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="aa31d39d7e957e5d6f5a7c1e193e1c992"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa31d39d7e957e5d6f5a7c1e193e1c992">&#9670;&nbsp;</a></span>__panic()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="defs_8h.html#a5b6df4fe38493e14648842364a76075f">__noreturn</a> __panic </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fmt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="assert_8h_aa31d39d7e957e5d6f5a7c1e193e1c992_cgraph.gif" border="0" usemap="#aassert_8h_aa31d39d7e957e5d6f5a7c1e193e1c992_cgraph" alt=""/></div>
<map name="aassert_8h_aa31d39d7e957e5d6f5a7c1e193e1c992_cgraph" id="aassert_8h_aa31d39d7e957e5d6f5a7c1e193e1c992_cgraph">
<area shape="rect" title=" " alt="" coords="5,411,76,437"/>
<area shape="rect" href="stdio_8c.html#ab5c1b009763ca6674c08b6241dad015c" title=" " alt="" coords="581,233,645,260"/>
<area shape="rect" href="stdio_8c.html#a6d5854f463c39b8d25aaa127b216832e" title=" " alt="" coords="703,233,775,260"/>
<area shape="rect" href="intr_8c.html#a51ef818cc1ceed4340d088bb16277653" title=" " alt="" coords="124,487,223,513"/>
<area shape="rect" href="kmonitor_8c.html#a6177d3644de8ea1c9d62c73d3c047ff6" title=" " alt="" coords="133,233,214,260"/>
<area shape="rect" href="stdio_8c.html#ae98dcd3b1f9718f15a600d22a69a2e9a" title=" " alt="" coords="875,132,941,159"/>
<area shape="rect" href="printfmt_8c.html#a6434f2b779b5ede2adc31ee4f7d64198" title=" " alt="" coords="867,233,949,260"/>
<area shape="rect" href="console_8c.html#a9a405546ecd1991ece1431da216e64f2" title=" " alt="" coords="1033,56,1120,83"/>
<area shape="rect" href="sbi_8h.html#a99638b95984187102dd50b1d0b430d3b" title=" " alt="" coords="1168,56,1323,83"/>
<area shape="rect" href="printfmt_8c.html#a7b1e12e09f757ca234758afb4d704db8" title=" " alt="" coords="1047,157,1107,184"/>
<area shape="rect" href="printfmt_8c.html#a934736e8473edc7ac3a20c613ae5f732" title=" " alt="" coords="1043,208,1111,235"/>
<area shape="rect" href="printfmt_8c.html#ad7d3bbf7612143a989ce3e9d1bfebf87" title=" " alt="" coords="1039,259,1114,285"/>
<area shape="rect" href="printfmt_8c.html#a51595febac146e7d189948ebb27e6768" title=" " alt="" coords="1036,309,1117,336"/>
<area shape="rect" href="string_8c.html#a732f92b81474cfb653776be70bc7f1c7" title=" " alt="" coords="1043,107,1110,133"/>
<area shape="rect" href="trap_8c.html#a51e89e35288406d1ebf6a5d55a308d1e" title=" " alt="" coords="271,284,395,311"/>
<area shape="rect" href="readline_8c.html#adc634fefff1a9f71c87a04e1eddb8649" title=" " alt="" coords="449,31,523,57"/>
<area shape="rect" href="kmonitor_8c.html#a28c010218ed67fdd79be5f9188610cd4" title=" " alt="" coords="297,157,368,184"/>
<area shape="rect" href="trap_8c.html#aed5fcbe1cf5c802e902b9e7a6ca527ab" title=" " alt="" coords="443,284,529,311"/>
<area shape="rect" href="stdio_8c.html#a957c6cffc0963f9e00e839f6f8af6fb9" title=" " alt="" coords="700,56,779,83"/>
<area shape="rect" href="stdio_8c.html#a3e29caa20f7cffe18f410f01278905a8" title=" " alt="" coords="577,5,648,32"/>
<area shape="rect" href="console_8c.html#a53b135d585a564aa1ad542d3c977adec" title=" " alt="" coords="696,5,783,32"/>
<area shape="rect" href="sbi_8h.html#a2c1d94c38003281d350a520eced61310" title=" " alt="" coords="831,5,985,32"/>
<area shape="rect" href="kmonitor_8c.html#a8ff1843b4df644b5476f716579c8f7e7" title=" " alt="" coords="457,81,515,108"/>
<area shape="rect" href="string_8c.html#a11bd144d7d44914099a3aeddf1c8567d" title=" " alt="" coords="453,132,519,159"/>
<area shape="rect" href="string_8c.html#aa409596a785c33c8fabee6d6464df3ff" title=" " alt="" coords="583,107,642,133"/>
</map>
</div>

</div>
</div>
<a id="ae9712851edefd0581a31baaf59bfd760"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9712851edefd0581a31baaf59bfd760">&#9670;&nbsp;</a></span>__warn()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void __warn </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fmt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="assert_8h_ae9712851edefd0581a31baaf59bfd760_cgraph.gif" border="0" usemap="#aassert_8h_ae9712851edefd0581a31baaf59bfd760_cgraph" alt=""/></div>
<map name="aassert_8h_ae9712851edefd0581a31baaf59bfd760_cgraph" id="aassert_8h_ae9712851edefd0581a31baaf59bfd760_cgraph">
<area shape="rect" title=" " alt="" coords="5,132,73,159"/>
<area shape="rect" href="stdio_8c.html#ab5c1b009763ca6674c08b6241dad015c" title=" " alt="" coords="121,107,185,133"/>
<area shape="rect" href="stdio_8c.html#a6d5854f463c39b8d25aaa127b216832e" title=" " alt="" coords="233,132,305,159"/>
<area shape="rect" href="stdio_8c.html#ae98dcd3b1f9718f15a600d22a69a2e9a" title=" " alt="" coords="362,56,427,83"/>
<area shape="rect" href="printfmt_8c.html#a6434f2b779b5ede2adc31ee4f7d64198" title=" " alt="" coords="353,157,436,184"/>
<area shape="rect" href="console_8c.html#a9a405546ecd1991ece1431da216e64f2" title=" " alt="" coords="484,5,571,32"/>
<area shape="rect" href="sbi_8h.html#a99638b95984187102dd50b1d0b430d3b" title=" " alt="" coords="619,5,773,32"/>
<area shape="rect" href="printfmt_8c.html#a7b1e12e09f757ca234758afb4d704db8" title=" " alt="" coords="497,56,557,83"/>
<area shape="rect" href="printfmt_8c.html#a934736e8473edc7ac3a20c613ae5f732" title=" " alt="" coords="493,107,561,133"/>
<area shape="rect" href="printfmt_8c.html#ad7d3bbf7612143a989ce3e9d1bfebf87" title=" " alt="" coords="490,157,565,184"/>
<area shape="rect" href="printfmt_8c.html#a51595febac146e7d189948ebb27e6768" title=" " alt="" coords="487,208,568,235"/>
<area shape="rect" href="string_8c.html#a732f92b81474cfb653776be70bc7f1c7" title=" " alt="" coords="494,259,561,285"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
